package com.hyzh.latte.vehicle.dmo;

/**
 * @author songkui
 * @since 2024/5/8 18:08
 */
public enum ParkRoadEnum {
    jiangan("jiangan_roads_pro", "jiangan_roads", "jiangan"),
    gaoxin("gaoxin_roads_test6", "gaoxin_roads_test3","gaoxin"),
    guangyuan("gaoxin_roads_test6", "gaoxin_roads_test3","guangyuan");

    private final String road; //寻路
    private final String fit; //拟合
    private final String park;


    ParkRoadEnum(String road, String fit, String park){
        this.road = road;
        this.fit = fit;
        this.park = park;
    }


    public String road() {
        return this.road;
    }

    public String fit(){
        return this.fit;
    }


    public static ParkRoadEnum ofCode(String code) {
        for (ParkRoadEnum genderEnum : values()) {
            if (genderEnum.park.equals(code)) {
                return genderEnum;
            }
        }
        return null;
    }


}
